package com.tengfei.main.plan.domain.bo;

import com.tengfei.common.core.validate.AddGroup;
import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 计划课程业务对象 sp_plan_user
 *
 * @author tengfei
 * @date 2022-08-01
 */

@Data
@ApiModel("计划课程业务对象")
public class PlanUsersBo {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 计划id
     */
    @ApiModelProperty(value = "计划id", required = true)
    @NotNull(message = "计划id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long planId;

    /**
     * 人员id
     */
    @ApiModelProperty(value = "人员id", required = true)
    @NotNull(message = "人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private Long deptId;

    /**
     * 人员姓名
     */
    @ApiModelProperty(value = "人员姓名")
    private String name;


}
